@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div style="display: none">
        <input type="hidden" id="oneChannelValue" value="">
        <input type="hidden" id="twoChannelValue" value="">
        <input type="hidden" id="thrChannelValue" value="">
        <input type="hidden" id="customerStatus" value="">
        <input type="hidden" id="xcustomerStatus" value="">
        <input type="hidden" id="reachValue" value="">
        <input type="hidden" id="wgz" value="1">
        <input type="hidden" id="condition" value="1">
        <input type="hidden" id="isDorj" value="qt">
        <input type="hidden" id="appointmentPayServiceValue" value="">
        <input type="hidden" id="menuName" value="到店-修改信息">
    </div>
    <div class="numStatistics">
        <div><span>总人数</span>（<span id="total">0</span>）</div>
        <div onclick="displayHiding('CustomerTable')" id="zoom">
            <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/open.png" alt="">
            <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/shrink.png" alt="" style="display: none">
            <span>条件展开</span>
        </div>
    </div>
    <div class="divFlex" style="display: none">
        <div class="flex_one">
            <div style="flex: 2.01;">到诊时间</div>
            <div>一级渠道</div>
            <div>二级渠道</div>
            <div>三级渠道</div>
            <div>开单状态</div>
            <div>TC</div>
            <div>科室</div>
            <div>搜索</div>
        </div>
        <div class="flex_two">
            <div>
                <input type="text" id="startArrivalTime" autocomplete="off" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
            </div>
            <div>
                <input type="text" id="endArrivalTime" autocomplete="off" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
            </div>
            <div>
                <select id="oneChannel" name="oneChannel" class="selectpicker" multiple title="请选择" onchange="Customer.search()">
                </select>
            </div>
            <div>
                <select id="twoChannel" name="twoChannel" class="selectpicker" multiple title="请选择" onchange="Customer.search()">
                </select>
            </div>
            <div>
                <select id="thrChannel" name="thrChannel" class="selectpicker" multiple title="请选择" onchange="Customer.search()">
                </select>
            </div>
            <div>
                <select id="dealStatus" name="dealStatus" onchange="Customer.search()">
                    <option value="">全部</option>
                    <option value="已结账">已结账</option>
                    <option value="未成交">未成交</option>
                </select>
            </div>
            <div>
                <select type="text" id="fieldTc" name="fieldTc" onchange="Customer.search()">
                    <option value="">请选择</option>
                    @for(str in tcList){
                    <option value="${str.tcName}">${str.tcName}</option>
                    @}
                </select>
            </div>
            <div>
                <select id="treatmentUnit"  onchange="Customer.search()">
                    <option value="">全部</option>
                    @for(str in departmentList){
                    <option value="${str.department}">${str.department}</option>
                    @}
                </select>
            </div>
            <div>
                <input type="text" id="sreach" autocomplete="off" style="width: 60%">
                <a href="javascript:;" style="color: #2eadd0;" onclick="Customer.search()">搜索</a>
            </div>
        </div>
    </div>
    <div class="timeButton">
        <div class="timeBox"></div>
        <div class="buttonBox" style="flex: 2.5;">
            <div>
                <button type="button" class="btn" onclick="Customer.updateEtaCard()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>企划卡</span></button>
                <button type="button" class="btn" onclick="Customer.updateChildrenCard()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>设置无龋齿卡</span></button>
                @if(shiro.hasPermission("/updateArrTime")){
                <button type="button" class="btn" onclick="Customer.updateTime()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>修改到店时间</span></button>
                @}
                @if(shiro.hasPermission("/personalInformation")){
                <button type="button" class="btn" onclick="Customer.updateCustomeInfo()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifyPatient.png"><span>改个人信息</span></button>
                @}
                @if(shiro.hasPermission("/batchChoiceTc")){
                <button type="button" class="btn" onclick="Customer.batchChoiceTc()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifytc.png"><span>批量改TC</span></button>
                @}
                @if(shiro.hasPermission("/updateMedium")){
                <button type="button" class="btn" onclick="Customer.updateMedium()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifyMedium.png"><span>改媒介</span></button>
                @}
                <button type="button" class="btn" onclick="Customer.updateDoctor()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifyDoctor.png"><span>改医生</span></button>
                <button type="button" class="btn" onclick="Customer.updateTochoiceTc()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifyDoctor.png"><span>改TC</span></button>
                <button type="button" class="btn" onclick="Customer.updateTreatmentUnit()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifyTreatment.png"><span>改科室</span></button>
                <button type="button" class="btn" onclick="Customer.updatePhone()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/modifyTelephone.png"><span>添加电话</span></button>
                <button type="button" class="btn" onclick="Customer.openToVoid()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png"><span>作废</span></button>
                <button type="button" class="btn" onclick="screenTable()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>显示列</span></button>
            </div>
        </div>
    </div>
    <div class="tableBox"><#table id="CustomerTable"/></div>
</div>
<script src="${ctxPath}/static/modular/arrival/customer/customer_modificationSum.js?v=20200718"></script>
<script src="${ctxPath}/static/modular/arrival/customer/foregroundSearchContent.js?v=20200718"></script>
<script src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/initChannel.js?v=20200718"></script>
<script src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/jsChannels.js?v=20200718"></script>
@}